GetActiveUnit{id}
This request returns a list of all packages.
Request URL
GET https://api.theownly.io/v1/units/{id}
Headers
| Name | Value | Required? |
|---|---|---|
| Accept | application/json | Yes |
| Authorization | Bearer{APItoken} | Yes |
Parameters
| Name | Type | Required? | Description |
|---|---|---|---|
| id | String | No | unit ID |
Example Request
curl -X 'GET' \
' https://api.theownly.io/v1/units/{id}' \
-H 'accept: application/json' \
-H 'Authorization: Bearer {APItoken}' \
Example Response
[
{
"id": "ijY4hgQht",
"externalId": "string",
"name": "string",
"availability": "available",
"floor": 0,
"price": 0,
"floorLocation": "string",
"view": "string",
"tourUrl": "string",
"buildingModel": {
"id": "j156XwnJ",
"name": "string",
"size": 0,
"bedrooms": 0,
"bathrooms": 0,
"longDescription": "string",
"project": {
"id": "uH7F5HkJ",
"name": "Sandgate",
"subRegion": "string",
"description": "string",
"longDescription": "string",
"address": "string",
"buildingType": "string",
"websiteUrl": "string",
"city": {
"id": "Eynvv3nd",
"name": "Calgary",
"state": "Alberta"
}
}
},
"imageUrl": "string",
"reservationUrl": "string"
}
]